package com.xinxuchu.design.principle.openclose;

/**
 * @program: java_learning
 * @description
 * @author: 辛旭初
 * @create: 2023-01-29 19:38
 **/
public class JavaCourse implements ICourse {

    Integer id;
    String name;
    Double price;

    public JavaCourse(Integer id, String name, Double price) {
        this.id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public Integer getId() {
        return this.id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }
}
